package com.situ.day7;

import org.junit.Test;

public class Demo {

	public static void main(String[] args) {
		Student student = new Student(1,"lisi",20,"java");
		student.show();
	}
	
	@Test
	public void test1() {
		AbstractCal cal = new Add(2,7);
		int result1  = cal.getResult();
		System.out.println(result1);
		
		cal = new Div(6,3);
		int result2 = cal.getResult();
		System.out.println(result2);
	}
}
